<?php
include 'common.php';
include 'common/header.php';
if (!$_SESSION['admin']) {
	header("location:login.php",302);
}
//系统功能
$menu_system_function = [
	'管理员管理' => "admin_user/user.php",
	'发帖管理'   => "send_requer/send.php",
	'回复管理'   => "send_requer/requer.php",
];
//板块管理
$menu_Sector_management = [
	'区主管理'   => "section/area.php",
	'版主管理'   => "section/moderator.php",
];
//会员管理
$menu_member = [
	'会员管理'   => "vip_user/vip.php",
	'会员列表'   => "vip_user/vip_table.php",
	'积分规则'   => "",
	'网站设置'   => "vip_user/config.php",
];
?>
<link href="<?=$website['public'];?>/admin/main.css" rel="stylesheet" type="text/css" />
<body>
	<div class="navigation">
		<div class="navigation_logo left">
			管理控制台
		</div>
		<div class="navigation_operation left">
			<a href="">首页</a>
			<a href="">系统</a>
			<a href="">插件</a>
		</div>
		<div class="navigation_name right">
			<div class="left">
				<i class="iconfont icon-kehu"></i>
			</div>
			<div class="left user_name">
			<?php echo $_SESSION['admin'] ?>
			</div>
			<a href="logout.php?logout=1">退出登录</a>
		</div>
	</div>
	<div class="function">
		<div class="menu">
			系统功能
		</div>
		<?php foreach ($menu_system_function as $key => $value) { ?>
		<div class="arr_ay"><a href="<?=$value?>" target="iframe"><?=$key?></a></div>
		<?php } ?>
		<div class="menu">
			板块管理
		</div>
		<?php foreach ($menu_Sector_management as $key => $value) { ?>
		<div class="arr_ay"><a href="<?=$value?>" target="iframe"><?=$key?></a></div>
		<?php } ?>
		<div class="menu">
			会员管理
		</div>
		<?php foreach ($menu_member as $key => $value) { ?>
		<div class="arr_ay"><a href="<?=$value?>" target="iframe"><?=$key?></a></div>
		<?php } ?>
	</div>
	<div class="operation min">
		<iframe src="index.php" frameborder="0" name="iframe" class="iframe"></iframe>
	</div>
</body>
</html>